<!DOCTYPE html>
<html lang="en" ng-app="MyModule">
<head>
    <meta charset="UTF-8">
    <title>Directive_loadData</title>
</head>
<body>
    <div ng-controller="MyCtrl">
        <loader howToLoad="loadData()">滑动加载</loader>
    </div>
    <div ng-controller="MyCtrl2">
        <loader howToLoad="loadData2()">滑动加载</loader>
    </div>
</body>
    <script type="text/javascript" src="../libs/angular-1.3.0.14/angular.js"></script>
    <script type="text/javascript" src="js/Directive_loadData.js"></script>
</html>